# -*- coding: utf-8 -*-

import time

from tasks import add

result = add.delay(2, 4)

while not result.ready():
    time.sleep(1)
print('task done: {}'.format(result.get()))
